import request from '@/utils/request'

export default {
    //生成订单
    createOrder(cid) {
        return request({
            url: `/serviceorder/order/createOrder/${cid}`,
            method: 'post'
        })
    },
    //根据id获取订单
    getById(oid) {
        return request({
            url: '/serviceorder/order/getOrder/'+oid,
            method: 'get'
        })
    },
    //生成微信支付二维码
    createNative(oid) {
        return request({
            url: '/serviceorder/paylog/createNative/'+oid,
            method: 'get'
        })
    },
    //根据id获取订单支付状态
    queryPayStatus(oid) {
        return request({
            url: '/serviceorder/paylog/queryPayStatus/'+oid,
            method: 'get'
        })
    }

}